package com.a.lib_network.bean;

import com.a.lib_network.enums.NetStateEnum;

/**
 * livedata 传递的参数
 * 推荐改用Event，使用MVI架构
 */
public class NetState {
    private String msg;
    private NetStateEnum state;

    /**
     * @param state 为Netstate里的静态常量
     */
    public NetState(String msg, NetStateEnum state) {
        this.msg = msg;
        this.state = state;
    }

    public NetState(NetStateEnum state) {
        this.state = state;
    }

    public NetStateEnum getState() {
        return state;
    }

    public void setState(NetStateEnum state) {
        this.state = state;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}